// JavaScript Document
var app3 = angular.module('app3', []);

app3.controller('gListCtrl', function($scope){
	$scope.groceries = [
		{item:'Tomatoes', purchased: false},
		{item:'Potatoes', purchased: false},
		{item:'Bread', purchased: false},
		{item:'Hummus', purchased: false}
	];
	
	$scope.getList = function(){
		return $scope.showList ? "ulgrocerylist.html" : "grocerylist.html";
	};
});